home *** CD-ROM | disk | FTP | other *** search
- /*
- Copyright (c) 1986, 1990 by The Trustees of Columbia University in
- the City of New York. Permission is granted to any individual or
- institution to use, copy, or redistribute this software so long as it
- is not sold for profit, provided this copyright notice is retained.
-
- Author: Andrew Lowry
- */
- /* cmfnc.h
- **
- ** This file contains function-specific symbols and declarations needed
- ** by application programs that wish to make use of the ccmd package.
- ** It is generated by m4 by means of the cmfnc.h4 file in conjunction with
- ** individual configuration files (as in cm???.cnf). The initial portion
- ** of the file, including this comment, is copied verbatim from the file
- ** cmfnc.top.
- **
- ** Function codes are given names like _CMTTT, where TTT is the three-
- ** letter abbreviation for the type, and are assigned small positive
- ** integer values.
- **
- ** Function-specific error codes are given names of the form TTTxEEE,
- ** where TTT is the three-letter abbreviation for the parse type, and
- ** EEE is an abbreviation for the error. The values assigned to these
- ** symbols are in two parts. The left half contains the function code
- ** for the parse function, and the right half contains an integer
- ** in the range 0 to n-1, where there are n errors defined for the parse
- ** type. Generic error codes for the ccmd package as a whole are given
- ** names like CMxEEE, and have zeros in the left half.
- **
- ** Flag values are generally given names like TTT_FFF, where FFF is a
- ** mnemonic for the flag. Other constants are given names like _TTTCCC,
- ** where CCC is a mnemonic for the constant.
- **/
-
- /* Macro to build error code values from the function code and error
- ** sub-code values.
- **/
-
- #define CMERR(fcode,ecode) ((fcode << 8) | ecode)
-
-